﻿@model Models.WebSite_HaiSheng.FileDownload
@using Utilities
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@Html.ValidationSummary(true)
<fieldset>
    <legend>文件下载维护</legend>
    <div class="editor-label">
        @Html.LabelFor(model => model.FileName)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.FileName)
        @Html.ValidationMessageFor(model => model.FileName)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.FileUrl)
    </div>
    <div class="editor-field">
     @{if (Model != null)
          {
            @Html.HiddenFor(m => m.FileUrl)
            @Html.DisplayFor(model => model.FileUrl)
          }
        }
        @Html.Telerik().Upload().Async(a => a.AutoUpload(true)).Name("attachments").Multiple(false)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.FileDescription)
    </div>
    <div class="editor-field">
        @Html.TextAreaFor(model => model.FileDescription)
        @Html.ValidationMessageFor(model => model.FileDescription)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Description)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Description)
        @Html.ValidationMessageFor(model => model.Description)
    </div>
    <div class="editor-label">
        @Html.LabelFor(model => model.Sequence)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Sequence)
        @Html.ValidationMessageFor(model => model.Sequence)
    </div>
    <p>
        <input type="submit" value=@SR.Save />
    </p>
</fieldset>
